/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主要内容区域 */
.main {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.exercise-container {
    max-width: 800px;
    margin: 0 auto;
}

/* 练习类型按钮 */
.exercise-type {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.exercise-btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: bold;
}

.exercise-btn.math {
    background-color: #3498db;
}

.exercise-btn.language {
    background-color: #2ecc71;
}

.exercise-btn.memory {
    background-color: #e74c3c;
}

.exercise-btn.logic {
    background-color: #9b59b6;
}

.exercise-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.exercise-btn:active {
    transform: translateY(1px);
}

/* 练习内容区域 */
.exercise-content {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    min-height: 400px;
}

#question-container {
    text-align: center;
}

#question-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

#question-text {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#answer-container {
    margin: 20px 0;
}

/* 按钮样式 */
#submit-btn, #next-btn, #restart-btn {
    padding: 12px 25px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: #fff;
    margin: 10px;
}

#submit-btn:hover, #next-btn:hover, #restart-btn:hover {
    background-color: #2980b9;
}

/* 结果容器 */
#result-container {
    text-align: center;
}

#score, #time-spent {
    font-size: 1.2em;
    margin: 10px 0;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
}

/* 工具类 */
.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .exercise-type {
        grid-template-columns: 1fr;
    }
    
    .exercise-content {
        padding: 20px;
    }
    
    .exercise-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
} 